#ifndef VXPINBUTTON_H
#define VXPINBUTTON_H

#include <Qt>
#include <QtGui>

class VxPinButton : public QWidget
{
	Q_OBJECT
	Q_ENUMS(State)
	Q_PROPERTY(State state READ _getState WRITE _setState)

public:
	enum State{
		PINNED		= 0,
		RELEASED	= 1
	};

	VxPinButton(QWidget * parent=0, State state=PINNED);

signals:
	void pinned();
	void released();
	void stateChanged(int state);

private:
	State _state;

	State _getState() {	return _state; }
	void _setState(State state);
};

#endif // VXPINBUTTON_H


